import request from "../utils/request";

export const loginMH = (phone,psw) => {
    return request({
        url:`/mh/user/login?userName=${phone}&password=${psw}`,
        method:'post'
    })
}
export const loginOut = (token) => {
    return request({
        url:`/mh/user/logout`,
        method:'post',
        headers:{
            ticket:token
        }
    })
}

export const getDetail = (id,bookId) => {
    return request({
        url:`/mh/query/book/chapter?bookId=${bookId}&chapterId=${id}`,
        method:'post',
    })
}
export const getjisu = (token,bookId) => {
    return request({
        url:`/mh/query/book/directory?bookId=${bookId}`,
        method:'post',
        headers:{
            ticket:token
        }
    })
}